<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>淘宝商品</title>
<%@ include file="/common/include.jsp"%>
<link href="/summer/template/admin/css/list.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/summer/template/admin/js/list.js"></script>
<meta name="Author" content="Summer++ Team" />
<meta name="Copyright" content="SUMMER" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript">
$().ready( function() {
var $importButton = $(".list input.importButton");// 更新价格按钮

//批量更新价格
$importButton.click( function() {
	var url = $(this).attr("url");
	var name = $(this).val();
	if (confirm("您确定要"+name+"么？") == true) {

		document.getElementById("listForm").action=url;
		document.getElementById("listForm").submit();
	}
});
})

</script>
</head>

<body class="list">
<div class="body">
<div class="listBar">
<h1><span class="icon">&nbsp;</span>淘宝商品列表<span class="pageInfo">总记录数:  ${pager.totalCount}
(共 ${pager.pageCount}页)</span></h1>
</div>
<form id="listForm" action="tao_bao_good!list.action" method="post">
<div class="operateBar"><input type="button" class="addButton"
	onclick="location.href='ptype!list.action'" value="导入商品" /> <label>查找:</label>
<select name="pager.property">
					<option value="name" >
						名称
					</option>
					
</select>
<label class="searchText"><input type="text" id="pager11" width="200"
	name="pager.keyword" value='${pager.keyword}' /></label><input type="button"
	id="searchButton" class="searchButton" value="" onclick="submit()" /> <label>每页显示:</label>
<select name="pager.pageSize" id="pageSize">
<option value="5"
		<s:if test="pager.pageSize==5">selected="selected" </s:if>>
	5</option>
	<option value="10"
		<s:if test="pager.pageSize==10">selected="selected" </s:if>>
	10</option>
	<option value="20"
		<s:if test="pager.pageSize==20">selected="selected" </s:if>>
	20</option>
	<option value="50"
		<s:if test="pager.pageSize==50">selected="selected" </s:if>>
	50</option>
	<option value="100"
		<s:if test="pager.pageSize==100">selected="selected" </s:if>>
	100</option>
</select>
</div>
<table class="listTable">
	<tr>
		<th class="check"><input type="checkbox" class="allCheck" /></th>
					<th><span class="sort" name="title"></span></th>
					<th><span class="sort" name="category"></span></th>
					<th><span class="sort" name="shopCategoryId"></span></th>
					<th><span class="sort" name="stuff_status"></span></th>
					<th><span class="sort" name="prov"></span></th>
					<th><span class="sort" name="city"></span></th>
					<th><span class="sort" name="price"></span></th>
					<th><span class="sort" name="increment"></span></th>
					<th><span class="sort" name="quantity"></span></th>
					<th><span class="sort" name="duration"></span></th>
					<th><span class="sort" name="shippingOption"></span></th>
					<th><span class="sort" name="ordinaryPostFee"></span></th>
					<th><span class="sort" name="emsFee"></span></th>
					<th><span class="sort" name="fastPostFee"></span></th>
					<th><span class="sort" name="paymentOption"></span></th>
					<th><span class="sort" name="secureTradeAgree"></span></th>
					<th><span class="sort" name="haveInvoice"></span></th>
					<th><span class="sort" name="haveGuarantee"></span></th>
					<th><span class="sort" name="autoRepost"></span></th>
					<th><span class="sort" name="putStore"></span></th>
					<th><span class="sort" name="shopWindow"></span></th>
					<th><span class="sort" name="story"></span></th>
					<th><span class="sort" name="pic"></span></th>
					<th><span class="sort" name="popvalue"></span></th>
					<th><span class="sort" name="postId"></span></th>
					<th><span class="sort" name="upload_status"></span></th>
					<th><span class="sort" name="pic_status"></span></th>
					<th><span class="sort" name="fandian"></span></th>
					<th><span class="sort" name="newPic"></span></th>
					<th><span class="sort" name="vedios"></span></th>
					<th><span class="sort" name="salePopValues"></span></th>
					<th><span class="sort" name="userWriteIds"></span></th>
					<th><span class="sort" name="userWriteMap"></span></th>
					<th><span class="sort" name="shoperNum"></span></th>
					<th><span class="sort" name="salePopName"></span></th>
					<th><span class="sort" name="chongzhiType"></span></th>
					<th><span class="sort" name="goodsNum"></span></th>
		
		<th>操作</th>
	</tr>

	<s:iterator value="pager.list" id="taoBaoGood">
		<tr>
			<td><input type="checkbox" name="ids" value="<s:property value="id" />" /></td>
					<td><s:property value="title" /></td> 
					<td><s:property value="category" /></td> 
					<td><s:property value="shopCategoryId" /></td> 
					<td><s:property value="stuff_status" /></td> 
					<td><s:property value="prov" /></td> 
					<td><s:property value="city" /></td> 
					<td><s:property value="price" /></td> 
					<td><s:property value="increment" /></td> 
					<td><s:property value="quantity" /></td> 
					<td><s:property value="duration" /></td> 
					<td><s:property value="shippingOption" /></td> 
					<td><s:property value="ordinaryPostFee" /></td> 
					<td><s:property value="emsFee" /></td> 
					<td><s:property value="fastPostFee" /></td> 
					<td><s:property value="paymentOption" /></td> 
					<td><s:property value="secureTradeAgree" /></td> 
					<td><s:property value="haveInvoice" /></td> 
					<td><s:property value="haveGuarantee" /></td> 
					<td><s:property value="autoRepost" /></td> 
					<td><s:property value="putStore" /></td> 
					<td><s:property value="shopWindow" /></td> 
					<td><s:property value="story" /></td> 
					<td><a href="<s:property value='fromUrl' /> "  target="_blank"   ><img  style="width: 55px;height:45px" src="<s:property value="%{pic.split(';')[0]}" />"  /></a></td> 
					<td><s:if test="%{null!=popvalue&&popvalue.length()>20}">属性一对应</s:if></td> 
					<td><s:property value="postId" /></td> 
					<td><s:property value="upload_status" /></td> 
					<td><s:property value="pic_status" /></td> 
					<td><s:property value="fandian" /></td> 
					<td><s:property value="newPic" /></td> 
					<td><s:property value="vedios" /></td> 
					<td><s:property value="salePopValues" /></td> 
					<td><s:property value="userWriteIds" /></td> 
					<td><s:property value="userWriteMap" /></td> 
					<td><s:property value="shoperNum" /></td> 
					<td><s:property value="salePopName" /></td> 
					<td><s:property value="chongzhiType" /></td> 
					<td><s:property value="goodsNum" /></td> 

			<td>     
				<a href="tao_bao_good!edit.action?id=<s:property value="id" />" title="编辑">[编辑]</a> 
			</td>
		</tr>
	</s:iterator>

</table>
<s:if test="pager.pageSize>0">
				<div class="pagerBar">
					<input type="button" class="deleteButton"  url="tao_bao_good!delete.action" value="删 除" disabled hidefocus="true" />
					<input type="button" class="importButton" name="导出CSV" url="tao_bao_good!exportCsv.action" value="导出CSV"  hidefocus="true" />
					<input type="button" class="importButton" name="商品上架" url="tao_bao_good!gotoTaobao.action" value="商品上架"  hidefocus="true" />
			<jsp:include page="/jsp/page.jsp"></jsp:include>
				</div>
			</s:if>
			<s:else>
				<div class="noRecord">
					没有找到任何记录!
				</div>
			</s:else>
</form>
</div>
</body>
</html>

 
